<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>系统日志</title>
    <link rel="stylesheet" type="text/css" th:href="@{/element-ui/lib/theme-chalk/index.css}"/>
    <link  th:href="@{/css/skin/login.css}" rel="stylesheet"/>
    <link  th:href="@{/css/other.css}" rel="stylesheet"/>
    <link th:href="@{/svg/iconfont.css}" rel="stylesheet"/>

</head>
<body>
<div id="app" class="pd-20">
    <div>
        <div style="display: flex;" class="bg-iframe-bar">
            <div class="iframe-bar-el-row">
                <div>
                    <el-date-picker
                            v-model="form.datemin"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="开始日期时间"
                    >
                    </el-date-picker>
                    <el-date-picker
                            v-model="form.datemax"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="结束日期时间"
                    >
                    </el-date-picker>
                    <el-input
                            placeholder="登录账号或操作描述..."
                            v-model="form.keyword"
                            clearable>
                    </el-input>
                </div>
                <div>
                    <el-button type="primary" icon="el-icon-search"
                               @click="queryData()"
                    >查询
                    </el-button>
                    <el-button id="exportBtn"
                               @click="exportData()"
                    ><i class="iconfont ">&#xe643;</i>导出
                    </el-button>
                    </el-button>
                </div>

            </div>
        </div>
        <div style="display: flex;" class="bg-iframe-tab">
            <template>
                <div style="display: flex;flex-direction:column;width: 100% !important;max-height:100%">
                    <el-table
                            ref="listData"
                            :data="listData"
                            v-loading="loading"
                            :header-cell-style="headStyle"
                            :cell-style="rowStyle"
                            border
                            style="width: 100%">
                        <el-table-column type="index" label="序号" width="70" :index="typeIndex" :resizable="false"></el-table-column>
                        <el-table-column prop="time" label="操作时间" :formatter="dateFormat" width="250" :resizable="false"></el-table-column>
<!--                        <el-table-column prop="username" label="用户名称" width="200" :resizable="false"></el-table-column>-->
<!--                        <el-table-column prop="dept" label="部门" width="170" :resizable="false"></el-table-column>-->
                        <el-table-column prop="ip" label="IP地址" width="160" :resizable="false"></el-table-column>
                        <el-table-column prop="logdesc" label="操作内容" :resizable="false"></el-table-column>
<!--                        <el-table-column label="操作对象" :resizable="false"></el-table-column>-->
                        <el-table-column prop="username" label="操作对象" width="200" :resizable="false"></el-table-column>
                    </el-table>

                    <div style="margin-top: 20px;margin-bottom:20px;width: 100%">
                        <el-pagination
                                background
                                style="float: right"
                                @size-change="handleSizeChange"
                                @current-change="handleCurrentChange"
                                :current-page="currentPage"
                                :page-sizes="[10, 25, 50, 100]"
                                :page-size="pageSize"
                                layout="total, sizes, prev, pager, next, jumper"
                                :total="total">
                        </el-pagination>
                    </div>
                </div>
            </template>
        </div>
    </div>
</div>

</body>
<input id="ctxPath" th:value="${#httpServletRequest.getContextPath()}" hidden>
</html>
<script type="text/javascript" th:src="@{/js/jquery/jquery-3.3.1.js}"></script>
<script type="text/javascript" th:src="@{/vue/vue.js}"></script>
<script type="text/javascript" th:src="@{/vue/moment.min.js}"></script>
<script type="text/javascript" th:src="@{/element-ui/lib/index.js}"></script>
<script type="module" th:src="@{/templatesJs/systemControl/systemLog.js}" ></script>
